package baseserverframe;

import javax.swing.*;



//------------------------------------------------------------------------------








/*******************************************************************************
 *
 */
public class Main
{
    public static void main(String[] args)
    {
		final mainFrame test = new mainFrame();
		/* Document, containing users information. */
		final document doc1 = new document();
			/* View for rights editing, */
			RulesView vw1 = new RulesView();
				vw1.setListOfRules();
				JMenuBar mb1 = new JMenuBar();
				JMenu m1 = new JMenu("Файл");
				m1.add(new JMenuItem("Выход"));
				mb1.add(m1);

				vw1.setMenu(mb1);

			doc1.addView("Rights", vw1);
			doc1.addStatus("RightStatus", new JLabel("Права доступа"));

			doc1.setCurrentView("Rights");

		test.addDoc("Users", doc1);
		test.setCurrentDoc("Users");

		test.setSkin();
		test.setSize(700, 400);
		test.init();
		test.setVisible(true);
    }

}
